<?php echo $header; ?>
<div class="container">
  <div class="row">
    <div id="content" class="col-xs-12"><?php echo $content_top; ?>
      <div class="nav-bar breadcrumb"><?php echo $heading_title; ?></div>
      <div class="row widget">
        <div class="col-xs-12">
          <div class="info">
            <p><i class="fa fa-calendar-check-o" aria-hidden="true"></i> <?php echo $date_added; ?> <?php echo $author; ?></p>
            <div class="share">
              <!-- Baidu Share BEGIN -->
              <div class="bdsharebuttonbox"><a href="#" class="bds_more" data-cmd="more"></a><a href="#" class="bds_qzone" data-cmd="qzone" title="分享到QQ空间"></a><a href="#" class="bds_tsina" data-cmd="tsina" title="分享到新浪微博"></a><a href="#" class="bds_tqq" data-cmd="tqq" title="分享到腾讯微博"></a><a href="#" class="bds_renren" data-cmd="renren" title="分享到人人网"></a><a href="#" class="bds_weixin" data-cmd="weixin" title="分享到微信"></a></div>
              <script>window._bd_share_config={"common":{"bdSnsKey":{},"bdText":"","bdMini":"2","bdMiniList":false,"bdPic":"","bdStyle":"0","bdSize":"16"},"share":{}};with(document)0[(getElementsByTagName('head')[0]||body).appendChild(createElement('script')).src='http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion='+~(-new Date()/36e5)];</script>
              <!-- Baidu Share END -->
            </div>
          </div>
          <hr>
          <?php if ($description): ?>
          <div class="well">
            <?php echo $description; ?>
          </div>
          <?php endif ?>
          <div class="post-body">
          <?php echo $content; ?>
          </div>
          <hr>
          <div class="seo">
            <ul class="list-unstyled">
              <li><?php echo $text_title; ?><?php echo $heading_title; ?></li>
              <li><?php echo $text_permalink; ?><a href="<?php echo $href; ?>"><?php echo $href; ?></a></li>
              <?php if ($categories): ?>
              <li><?php echo $text_category; ?>
                <?php foreach ($categories as $category): ?>
                <a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a>
                <?php endforeach ?>
              </li>
              <?php endif ?>
            </ul>
          </div>
        </div>
      </div>
      <?php echo $content_bottom; ?>
    </div>
  </div>
</div>
<script>
  $(document).ready(function() {
    var post_body_width = $('.post-body').width();
    $('#content .post-body img').each(function() {
      if($(this).width() > post_body_width) {
        $(this).removeClass('img-responsive').addClass('img-responsive');
      }
    });
  })
</script>
<?php echo $footer; ?>
